#!/bin/bash

# Notes for Ubuntu lucid:
# sudo apt-get install cabal-install  # install ubuntu package
# cabal update
# cabal install cabal-install  # update cabal itself
# cabal install test-framework
# cabal install test-framework-hunit

haskell() {
  set -o errexit

  which cabal || die "You need cabal to build the Haskell library."
  pushd haskell > /dev/null

  pushd tnet > /dev/null
  cabal install
  popd > /dev/null

  pushd network-pgi > /dev/null
  cabal install
  popd > /dev/null

  popd
}


"$@"
